﻿@{
    ViewData["Title"] = "Home Page";
}

<style>

    .link {
        color: white;
        text-align: right;
        /*border: solid 1px white;*/
    }

</style>
<script>

    function RedirectFunction(type) {
        console.log("type:" + type);
        //debugger;
        switch (type) {
            case 1:
                $(window).attr('location', '/DbSetting');
                break;
            case 2:
                $(window).attr('location', '/ServerFilePath');
                break;
            case 3:
                window.open('/hangfire');
                return false;
            case 4:
                $(window).attr('location', '/DbSetting');
                break;
            default:
                $(window).attr('location', '/Home');
        }

        
        return false;
    }

</script>

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
</div>
<!-- =========================================================== -->
<h5 class="mt-4 mb-2">配置面板<code>和各项设置</code></h5>
<div class="row">
    <div class="col-md-3 col-sm-6 col-12" onclick="return RedirectFunction(3)">
        <div class="info-box bg-gradient-info">
            <span class="info-box-icon"><i class="far fa-bookmark"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">计划任务</span>
                

                <div class="progress">
                    <div class="progress-bar" style="width: 100%"></div>
                </div>
                <span class="progress-description">
                    查看任务状态,执行情况
                </span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
    <div class="col-md-3 col-sm-6 col-12" >
        <div class="info-box bg-gradient-success" onclick="return RedirectFunction(1)">
            <span class="info-box-icon"><i class="far fa-thumbs-up"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">数据库配置</span>
                

                <div class="progress">
                    <div class="progress-bar" style="width: 100%"></div>
                </div>
                <span class="progress-description">服务器IP,账号,密码等设置</span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
    <div class="col-md-3 col-sm-6 col-12" onclick="return RedirectFunction(2)">
        <div class="info-box bg-gradient-success">
            <span class="info-box-icon"><i class="far fa-calendar-alt"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">附件设置</span>
                
                <div class="progress">
                    <div class="progress-bar" style="width: 100%"></div>
                </div>
                <span class="progress-description">
                    上传文件夹,生成PDF文件夹等
                </span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
    <div class="col-md-3 col-sm-6 col-12">
        <div class="info-box bg-gradient-danger">
            <span class="info-box-icon"><i class="fas fa-comments"></i></span>

            <div class="info-box-content">
                <span class="info-box-text">WPS服务检测</span>
                <div class="progress">
                    <div class="progress-bar" style="width: 70%"></div>
                </div>
                <span class="progress-description">
                    检测wps服务情况
                </span>
            </div>
            <!-- /.info-box-content -->
        </div>
        <!-- /.info-box -->
    </div>
    <!-- /.col -->
</div>
<!-- /.row -->